package com.alibaba.travel.search.service;

import com.alibaba.travel.search.model.dto.ArticleSearchRequest;
import com.alibaba.travel.search.entity.EsArticle;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: where
 * @Date: 2023/03/09/8:35
 * @Description:
 */
public interface ArticleSearchService {
    /**
     * 通过文章id上传信息
     * @param ids
     */
    void upload(Long[] ids);

    /**
     * 通过文章信息上传 文章
     */
    void upload(List<EsArticle> articleList);

    /**
     * 搜索
     */
    List<EsArticle> search(ArticleSearchRequest searchRequest);


    void delete(Long[] ids);
}
